package com.wash.shoes.common.utils;

import com.ruoyi.common.core.domain.R;

/**
 * @author wangxy
 * @date 2024/9/21 12:17
 */
public class ResultUtil {

    public static R<String> createSucR() {
        R r = R.ok("suc", "suc");
        r.setCode(0);
        return r;
    }

    public static R<String> createErrorR(String msg) {
        R r = R.ok(msg, "error");
        r.setCode(1);
        return r;
    }
}
